‘Get it over with’: Town rehires ex-chief, will pay at least $368,000 to end legal fight