So the actual problem here is a bit of a mystery. However, it seems that you’re on iOS, in which case you rarely use XPC directly but rather use it via some framework, and it’s the framework’s responsibility to handle interruptions. If you’re using XPC directly, which is typically only done on macOS, you must be prepared to handle either eventuality. This can happen for abnormal reasons (for example, the remote process crashing) and for normal reasons (the system terminating the remote process to recover memory). An XPC connection is interrupted when the remote process terminates.