TEIID-2757 correcting the exit check