TEIID-2379 fixing the npe with uninitialized close