ipc: close handle after balance