Restrict parent Goals from being closed until all sub-goals are Closed

Currently, there is no limitation on a Goal being marked to a “Closed” status despite it having sub-goals remaining in an “Open” status. Ideally, there should be a way to force all sub-goals to be marked to a “Closed” status before the parent goal is marked to a “Closed” status.