Delayed shutdown of the 24v relay (aftermarket spindle)

I made a diagram it’s easier for me
Here is my current wiring

Are you suggesting something like this?


I’m really not on wiring :grinning:

I wonder if the 24 v is not cut once the pin stops