@Override
    public void run() {
        try {
            connect(server, port);
            if (serverEventsListener != null)
                serverEventsListener.connected();
        } catch (IOException | IrcException e) {
            if (serverEventsListener != null)
                serverEventsListener.connectionCantBeEstabilished( e.getMessage() );
        }
    }