stop button to interrupt thread