prevent double callback when error is thrown
Merge pull request #480 from pgn-vole/master

prevent double callback when error is thrown