added getFrame method to InteractiveRealViewer (used it in RemoteViewer
to explicitly terminate the JVM when the window gets closed)