The problem with your current code, is there is nothing to stop motion. It simply displays whatever message, then continues on it's way.
Within the If Else statements, you'll need to call a feedhold prior to displaying the message, so that motion is physically stopped. Once you get that working, you could then expand it to stop the spindle if needed, and then restart in whatever direction you need.
What I'd suggest before you try editing/adding to the code, is create a flow chart of the process, so that you know exactly what the process is, before you start coding anything. That way you're simply converting from flow chart to code, and not trying to figure out the process at the same time as trying to code it.