fix client hangs on wrong password