diff --git a/lib/debugger/xml/multiprocess/monkey.rb b/lib/debugger/xml/multiprocess/monkey.rb
index <HASH>..<HASH> 100644
--- a/lib/debugger/xml/multiprocess/monkey.rb
+++ b/lib/debugger/xml/multiprocess/monkey.rb
@@ -23,7 +23,7 @@ module Debugger
 
           #{private ? "private" : ""}
           def exec(*args)
-            Debugger.interface.close
+            Debugger.handler.interface.close
             pre_debugger_exec(*args)
           end
         }
@@ -46,4 +46,4 @@ module Process
     module_eval Debugger::Xml::MultiProcess.create_mp_fork
     module_eval Debugger::Xml::MultiProcess.create_mp_exec
   end
-end
\ No newline at end of file
+end
Correct way to close interface before calling #exec