Causes the mirrored VM to terminate with the given error code. All resources associated with this VirtualMachine are freed. If the mirrored VM is remote, the communication channel to it will be closed. Resources originating in this VirtualMachine (ObjectReferences, ReferenceTypes, etc.) will become invalid.
Threads running in the mirrored VM are abruptly terminated. A thread death exception is not thrown and finally blocks are not run.
@param exitCode the exit code for the target VM. On some platforms,the exit code might be truncated, for example, to the lower order 8 bits.
@throws VMCannotBeModifiedException if the VirtualMachine is read-only - see {@link VirtualMachine#canBeModified()}.