Moved error handling back in PBKDF2.java