The method exit() should be called when you want to quit from JReport Result Viewer Bean. It will perform some clean up work, such as deleting temporary files. It is important to free up the resources of the result file, so remember to follow this method.