It has sleep in do after, this is a straight copy of resist code.
From what I understand spawn has some logic so as to not mess with stuff.