Close connection cleanly when login/pw incorrect, following RFC recommendation.