better cleanup functions
waitSpin: add type annotation