Tracking boot and shutdown events