Use app.launch and app.exit events for session tracking.