private static void closeConnection(Connection conn) {
		if( conn != null ) {
			try {
				if( !conn.isClosed() ) {
					conn.close();
				}
			} catch (SQLException e) {
				logger.error("Error closing the connection.", e);
			}
		}
	}