BUG(2523): Separate closing shutting down the ipc system.

The tests and main.c wants a complete shutdown, while internally
in ipc.c only a close is needed when ipc path is reconfigured.