[NUCRDBMS-812] Dont close statement when resultSet is closed