Couldn't you just add some language like "invoice is due and payable regardless on the outcome of the escrow"? When I work through architects, I have a clause which reads "there are no paid when/if paid provisions in this agreement." Alternatively, if the escrow is to close in xx days (30, 90...