Reset  to prevent leaked global state.