Remove listeners from TCP server instance when stop method is called.