Use callback to pass error instead of throwing
Merge pull request #2 from clarle/error-handling

Use callback to pass error instead of throwing