Rescue exceptions when attempting token generation