Fix killing VMs at shutdown