Changed vm_destroy to sync call, and fixed the redirect afterwards