Generator cleanup