don't call callback inside of a try statement

This fixes some weird behavior if code outside the library raises an Error when the callback is called. In particular this will prevent issues like #24