Added PreDestroy and shut down everything
Added PreDestroy and shut down everything