rename method stopAndSleep as finishAndSleep.