Add error handling around .encrypt
Merge pull request #210 from Atheros1/master

Add error handling around .encrypt