cleanup ipc structure