Fixed bug causing client to reconnect endless if key invalid.