Sleep for 10 seconds after getting a ConnectionError; catch other errors and exit