---
title: interruptionHandler
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsxpcconnection/interruptionhandler
---

# interruptionHandler

An interruption handler that is called if the remote process exits or crashes.

## Declaration

```swift
var interruptionHandler: (() -> Void)? { get set }
```

## Discussion

Discussion It may be possible to re-establish the connection by simply sending another message. The handler is invoked on the same queue as reply messages and other handlers, and it is always executed after any other messages or reply block handlers (except for the invalidation handler).

## See Also

### Managing connection state

- [activate()](foundation/nsxpcconnection/activate().md)
- [resume()](foundation/nsxpcconnection/resume().md)
- [invalidate()](foundation/nsxpcconnection/invalidate().md)
- [suspend()](foundation/nsxpcconnection/suspend().md)
- [invalidationHandler](foundation/nsxpcconnection/invalidationhandler.md)
- [current()](foundation/nsxpcconnection/current().md)
- [scheduleSendBarrierBlock(_:)](foundation/nsxpcconnection/schedulesendbarrierblock(_:).md)
