Track boot and shutdown events.