Added cleanup after IPC