---
title: "stopExecution(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugin/stopexecution(_:)"
---

# stopExecution(_:)

Allows you to perform custom tasks when the QCPlugIn object stops executing.

## Declaration

```swift
func stopExecution(_ context: (any QCPlugInContext)!)
```

## Parameters

- `context`: An opaque object , conforming to the doc://com.apple.quartz/documentation/Quartz/QCPlugInContext protocol, that represents the execution context of the QCPlugIn object. Do not retain this object or use it outside of the scope of this method.

## Discussion

Discussion The Quartz Composer engine calls this method when it stops executing. You can optionally override this execution method to perform cleanup tasks.

## See Also

### Performing Custom Tasks During Execution

- [startExecution(_:)](quartz/qcplugin/startexecution(_:).md)
- [enableExecution(_:)](quartz/qcplugin/enableexecution(_:).md)
- [disableExecution(_:)](quartz/qcplugin/disableexecution(_:).md)
