...
The when stop clicked is a hat block which activates the script under it when the stop button is clicked.