fix the issue callback call twice

if the error callback handler doesn't return earily
the callback will be called twice, that's cause some unexpected
error
Merge pull request #2 from xujihui1985/master

fix: Don't invoke callback twice on error