Invalidates this virtual machine mirror. The communication channel to the target VM is closed, and the target VM prepares to accept another subsequent connection from this debugger or another debugger, including the following tasks:
- All event requests are cancelled.
- All threads suspended by {@link #suspend} or by{@link ThreadReference#suspend} are resumed as manytimes as necessary for them to run.
- Garbage collection is re-enabled in all cases where it was disabled through {@link ObjectReference#disableCollection}.
Any current method invocations executing in the target VM are continued after the disconnection. Upon completion of any such method invocation, the invoking thread continues from the location where it was originally stopped.
Resources originating in this VirtualMachine (ObjectReferences, ReferenceTypes, etc.) will become invalid.