Run 'stop' process when clicking the stop button