consistent dealing with exit lambda