title: How to Catch and Handle Excel,IE,Winzip Closing Event in Java
body: <p>In my application, firstly, I upload xls, xlsx, zip file into database in binary format.</p>
  
  <p>Secondly, I create a temp folder to load binary files and convert them to the original format in a temp folder, and open it automatically for users to have an overview.</p>
  
  <p>However in security consideration, I hope to delete the temp files after the user close the excel or winzip application. </p>
  
  <p>In my mind, I need to catch the closing event for the applications like excel and winzip then do the rest works. </p>
  
  <p>I see some solutions by using C# or VB. I hope Java could also do the job. Could you give me some advises?</p>