clean and close the GE