Cancelling previous commit, lambdas should be captured by value