Wrap bcrypt in a try-catch