Make sure to cleanup the ipc sockets created as part of the test suite.

Patch to resolve #325.

Closes #325