Fixed a bug where the client wouldn't automatically try to reconnect when failing authentication