Various fixes to client to prevent infinitie logon loop, connection status not being updated on error.