Remove all listeners from socket server on shutdown
Semi-functional test case for ConnectionManager