Catch connection issues when attempting a request