diff --git a/lib/vagrant-multi-putty/command.rb b/lib/vagrant-multi-putty/command.rb
index <HASH>..<HASH> 100644
--- a/lib/vagrant-multi-putty/command.rb
+++ b/lib/vagrant-multi-putty/command.rb
@@ -41,7 +41,7 @@ module VagrantMultiPutty
       end
 
       if options[:modal]
-        Process.wait(0, Process::WNOHANG)
+        Process.waitall
         @env.config_global.putty.after_modal_hook.call
       end
 
diff --git a/lib/vagrant-multi-putty/version.rb b/lib/vagrant-multi-putty/version.rb
index <HASH>..<HASH> 100644
--- a/lib/vagrant-multi-putty/version.rb
+++ b/lib/vagrant-multi-putty/version.rb
@@ -1,3 +1,3 @@
 module VagrantMultiPutty
-  VERSION = "1.4.0"
+  VERSION = "1.4.1"
 end
Fixed incorrect call to Process.wait by changing the call to Process.waitall.