issue #860 destroy plateviewer frame instead of trying to clear its children