diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index da7215f07..db2130691 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -203,6 +203,11 @@ module Vagrant # Return an exit status container return Result.new(process.exit_code, io_data[:stdout], io_data[:stderr]) + ensure + if process && !process.exited? + # Make sure no matter what happens, the process exits + process.stop(2) + end end protected