fix ordering of tasks
Merge pull request #70 from grahamb/hotfix-restart

fix ordering of tasks