Fix resource leaks in ResultSet + Statement objects