added thrown exception when tomcat or glassfish containers do not shut down