Exception handling for when trying to connect to a bad IP