optimized runonce finally