Town cancels attorney contract, hires new firm