Closing JDBC connections on exception while performing GetRecords and GetRecordsById requests