Ensure module reset functions are only called once