catch any exception while waiting to connect

requests 2.4 changed the exception type for a failed connection

This seems to have been the cause of recent test failures.