flush when closed