resolve the runOnce when it completes