Fix problem with flush and shutdown