removing lock on early exits