Some basic error handling for pkcs15-crypt errors such as bad PIN