Don't print disconnect message when not connected.
Resolve server host and connect asynchronously.

Prevents freezes after pressing the connect button.
More thread safety in network code.