add catching of immediate callback errors