close lambdas at time of create