Shutdown tracking code (session tracking)