Fixed bug causing messages received by IPC to never get processed if the connection is dropped shortly after receiving the message