disposeThreadHandler();
VirtualMachine vm = getVM();
if ( vm != null ) {
vm.exit( 1 );
}
IProcess process = getProcess();
if ( process != null ) {
process.terminate();
}
} catch ( VMDisconnectedException e ) {
// if the VM disconnects while exiting, perform
// normal termination processing
terminated();
} catch ( TimeoutException exception ) {
// if there is a timeout see if the associated process is terminated
IProcess process = getProcess();
if ( process != null && process.isTerminated() ) {
terminated();
} else {
// All we can do is disconnect
disconnected();
}