catch amazonserviceexception