clockevents: prevent multiple init/shutdown