Catch the problem on connection.