Fix async causing subsequent tasks to fail.

Fixes #39