After reading the button to delay the execution without stopping action before a

If i push the button to stop the stepper, i do not want to stop it instantly, I consider that I pressed the stop button to stop the stepper, but stop the with 2 seconds delay from when the button stop was pressed .