When archiving is enabled, rotate the last WAL segment at shutdown so that