Fixed defer with C++11 lambdas.