Cleanup sockets used by CIRC when the window is closed - fixes #25