Handle situations where the connection terminates immediately (bad password, host down, etc.)