catch any exception while waiting to connect

requests 2.4 changed the exception type for a failed connection
Merge pull request #6388 from minrk/requests-2.4

catch any exception while waiting for server to start