SERVER-13294 mongos --upgrade should exit after upgrading

Fix multiVersion tests
(cherry picked from commit 6e5c3296a9c8001307176f58fec0e632d0beebd0)