The court may refuse to render or enter a declaratory judgment or decree if the judgment or decree would not terminate the uncertainty or controversy giving rise to the proceeding.