avoid fatal guzzle exception error
This is an example on how to catch this error:

try {
     $client = new Client();
     $response = $client-&gt;request('GET', $url);
     $content = json_decode($response-&gt;getBody(), true);     
} catch (\GuzzleHttp\Exception\ConnectException $e) {
     var_dump($e);exit();
}