revert setTimeout and clearInterval
cleanup