In closeClaim https://github.com/etherisc/gif-contracts/blob/b58fd27a34452e062d10b175f3bdd7ee16b9d1a7/contracts/modules/PolicyController.sol#L358 There is no check to close the corresponding policy if it is expired and have no open claims