Fix callback error passing.
Merge pull request #15 from kramerc/fix-callback-error

Fix callback error passing.