check if mygpo is enabled before calling .flush()

to avert a warning..