Fix up tasks and destroy vm when we are done