TEIID-2619 ensuring source closure