if (moviePlayer != null) moviePlayer.dispose();
if (moviePlayer != null) moviePlayer.close();
    void disposeDialogs()    {        if (moviePlayer != null) moviePlayer.dispose();        if (imageInspector != null) imageInspector.dispose();        roiOnOff = false;        presentation.removeCanvasFromLayer(presentation.getDrawingCanvas());        presentation.getBottomBar().resetMessage(BottomBar.LENS);        presentation.getDrawingCanvas().setOnOff(true);        moviePlayer = null;        imageInspector = null;        movieSettings = null;        iat.setMagFactor(ImageInspector.ZOOM_DEFAULT);        //Need to remove the drawing canvas. and erase all color.        // will post an even to kill the ROIAgt.    }