teiiddes-2224: Added logic to check for compilation errors and changed connection, resulset, properties, and statement variables from class level to local scope.
Merge pull request #378 from tejones/teiiddes-2224

teiiddes-2224