Added ShutDownListener. Though still get PermGen error....