flush at exit