Add error handling in pdf2john