fix to stop writing zeros to the resulted file if it takes some time to stop a benchmark