unregister lambdas from scope