while (this.vmConnected) {
try {
EventSet set = vm.eventQueue().remove();
EventIterator eventIterator = set.eventIterator();
while (eventIterator.hasNext()) {
Event next = eventIterator.next();
Throwable t = null;
dispatchEvent(vm, next);
}
} catch (InterruptedException ex) {
} catch (VMDisconnectedException ex) {