Grounding while using a generator