log: close old file on rotate