No need to do anything, other than to call the alternative:
JasperViewer(jasperPrint, **false**);
JasperViewer.viewReport(jasperPrint, **isExitOnClose**);
The JasperViewer has alternative constructor/method call which receives boolean param: exitOnClose
I don't know if you've found your own way around but I think this is the best one.