add an exception callback option
Merge pull request #6 from jondruse/master

add an exception callback option