The shuttering of the company’s last operating factory in New Britain will mark the first time in city history that Stanley won’t be manufacturing anything there.