[ipc] fix exit