If stop is pressed after the waiting timer has already started. The last beep will be played after waiting time is over.
Should fix this either by checking stopped status after sleeping or killing the thread somehow instantly when the stop button is pressed.