Catch exceptions from requests