Handle IPCConnection shutdown properly.