Here is a patch to allow to catch exception raised by callbacks from watch_session_scans.
watch_session_scans