Show server connection status, and only reset after disconnect

Fixes endless reset loop, hanging Firefox.