The method exit () should be called when you want to quit from the Desktop Viewer Bean. This method will do some clean-up work such as deleting temporary files and releasing resources. It is important, so keep in mind to call this method.