Proper checks for connection success.