title: Tomcat 6 finalize method
body: <p>Is there any way of executing code on Tomcat 6 when the application get stopped/unloaded ? (I am trying to deregister the MySQL driver by hand due to memory leaks problem).</p>
  
  <p>Thanks in advance</p>