Properly dispose the VM in the debugger agent thread when the socket connection is closed. Fixes issues with the debugger agent thread stopping and suspend_current () being stuck in infinite loop when the debugger socket connection is closed.