The sandwich giant has shuttered 8,345 restaurants since 2016, but international growth and operational improvements are on the rise.