introduce some encryption exceptions and catch additional error cases