Removed use of lambdas for null destructors