If you use this code to get a reference to FPMIApp, then use reflection (i.e. Apache commons FieldUtils) to read the diagnosticsDialog, you could then setVisible(false) to ensure it's not showing.
diagnosticsDialog
setVisible(false)