Update dependency
Add error handling
Merge pull request #54 from t32k/fix-error

Add error handling