ensure that _cleanup works whether it is a promise returning function or not
ensure that _cleanup works whether it is a promise returning function or
not

AlaricChan/on-tasks,nortonluo/on-tasks,bbcyyb/on-tasks,bbcyyb/on-tasks,nortonluo/on-tasks,AlaricChan/on-tasks