flush bulk when exit