So if I understand you right, it spins over after it stops but will not fire, after 30 min or so it cranks off with no problems , If it was a safety switch it wouldn't spin at all , It however could be a low oil level safety which will not let it start, after sitting for a time , the oil drains back into the sump and resets the low oil level kill .
this would be my guess