Closing JDBC connections on exception while performing GetRecords and Ge...

...tRecordsById requests