safe-callback

wrapper for callbacks