Fix error catching -- don't call callback twice
Merge pull request #2 from mostafaeweda/master

Fix error catching -- don't call callback twice