Added error handling in IPC requests.