make trap_err_handler slightly less dangerous