Kilpatrick , charged with perjury and other felonies over his testimony in a civil trial , apologized and acknowledged that he made a mistake when he visited Windsor , Ontario , minutes away from Detroit , for city business last month .