Expose unhandled exceptions as callback