Revert "fix exit when a future is waiting"

This reverts commit 130263058af61c9fe858249080db36bf177aa775.