crypt: Added try/catch handling to prevent error throwing