Bug fix: connection hung in case of expired accounts or ACCEPT/prompt commands in login.sql file.