plaintiff, nor obligates defendant to pay any costs or expenses incurred by plaintiff in any actions arising out of the crash of the Gulfstream II aircraft N720Q on June 24, 1974.” Grumman commenced this action for a declaration that IBM must defend and indemnify Grumman for liability arising from a crash of a Gulfstream II aircraft manufactured by Grumman, owned by IBM, and operated by a Grumman pilot in the course of giving instruction to two IBM employees. At issue is the applicability of an indemnification clause appearing in paragraph (d) of article II of the sales agreement between Grumman’s predecessor in interest and IBM, which provides that: "(d) If, after acceptence of the aircraft by Buyer’s representative as provided above, the aircraft remains in, or is returned to, Grumman’s care, custody or control for pilot training, ferry flights or for any other purpose, Buyer shall indemnify Grumman and save Grumman harmless from any loss or liability arising out of a flight performed by Grumman or with a Grumman pilot in command where the flight was performed at the request of Buyer.” After two motions for summary judgment by Grumman, and one cross motion by IBM to dismiss the complaint, were denied, a nonjury trial was conducted. Trial Term subsequently issued a decision holding that since the subject of the declaratory judgment action would necessarily be resolved in the underlying wrongful death actions pending in Federal court against Grumman, in which IBM has been joined as a third-party defendant, it would be an abuse of discretion to entertain jurisdiction over an action for a declaratory judgment. Accordingly, the complaint was dismissed,
sua sponte, without prejudice. The declaratory judgment action was commenced prior to the institution of the third-party action in Federal court. The nature of the controversy, construction of an indemnification agreement and declarations concerning IBM’s obligation to defend and indemnify Grumman, is a proper subject for declaratory relief. Trial Term’s decision to decline to entertain jurisdiction was made after a full trial, approximately four years after the action was commenced, after the Federal court wrongful death actions had been settled, and in the absence of any such request for relief by IBM. Until Trial Term’s decision, the parties and the court had apparently acceded to the propriety of declaratory relief (cf.
Sanderson v Newark Ins. Co., 20 AD2d 961 ). Certainly, construction of the indemnification clause is a proper subject of New York law and a declaration construing the clause will eliminate substantial issues from the Federal court litigation. Although a court has inherent discretion to decline to make a declaration, such discretion must be timely exercised. No purpose will now be achieved by compelling the parties to relitigate these issues when there is already a complete record available for adjudication. It was, therefore, improper to have dismissed the complaint,
sua sponte, at this late stage in the action. The final judgment dismissing the complaint having been entered after the establishment of a full record in a nonjury trial, it is appropriate that we make a determination on the merits (see
Bernardine v City of New York, 294 NY 361 ;
Greater N. Y.
Mut. Ins. Co. v Perry, 6 AD2d 432 , app dsmd
7 NY2d 718 ). Contrary to IBM’s contention, it is plain that the training flight on which the accident occurred was within the scope of the contractual indemnification clause. The clause unequivocally applies whenever, after acceptance by IBM, the aircraft is returned to Grumman’s custody or control and liability arises from a flight, performed by Grumman or with a Grumman pilot in command where the flight was performed at the request of IBM. The clause contains neither a limitation of time nor a limitation of purpose. More difficult is determining the intended scope of indemnification. Grumman contends that the clause includes indemnification for its own negligence whereas IBM alterna