public void SendMessage(BaseMessage message) { try { NetworkComponent.SendMessage(message); } catch (CommunicationErrorException e) { if (e.Type == CommunicationExceptionType.InvalidSocket) { SetCriticalException(e); } else { Logger.Get().Error("[GM] Exception occured: {ex}", e.Message); } } }