Fixed AnomalyListener and SocketListenerClientThread removal when socket loses connection