Added minor check

For robustness, adds an exception reporting feature for requests.