1) Logic of system tray icon different states (connecting, connected, connection error)
2) Reconnection logic (try reconnect)