Add begin/rescue block when saving a record.
Merge pull request #4 from plamena/master

Add begin/rescue block when saving a record.