trying to fix exiting on Amazon exception