In processPayout https://github.com/etherisc/gif-contracts/blob/b58fd27a34452e062d10b175f3bdd7ee16b9d1a7/contracts/modules/PolicyController.sol#L428-L431 There is no check to close the corresponding policy after processing the last payout of the last claim of expired policy