rosetta-code.metronome: fix metronome to stop the timer.