close ResultSet also in latency query