SERVER-13429 Update exit_logging.js to also test mongos exit logging.

(cherry picked from commit 9e041ccf433660008ed2ddb1c2ed58ba78ef5488)