private static void closeResult(ResultSet rs) {
		if( rs != null ) {
			try {
				if( !rs.isClosed() ) {
					rs.close();
				}
			} catch (SQLException e) {
				logger.error("Error closing the result set.", e);
			}
		}		
	}