diff --git a/lib/vagrant/action/vm/import.rb b/lib/vagrant/action/vm/import.rb index 25b4a709f..3bd633a2b 100644 --- a/lib/vagrant/action/vm/import.rb +++ b/lib/vagrant/action/vm/import.rb @@ -22,10 +22,12 @@ module Vagrant end # Import completed successfully. Continue the chain - @app.call(env) if !env.error? - + @app.call(env) + end + + def rescue(env) # Interrupted, destroy the VM - env["actions"].run(:destroy) if env.interrupted? + env["actions"].run(:destroy) end end end