src/common/closures: safeCallback: catch the userland callback exception and throw it back to appear as if it was an uncaught exception