ipc: prevent possible fd leak
v0.32.4

Signed-off-by: Fedor Indutny <fedor@indutny.com>