SCAL-445: Using detected mongos path when terminating process