No mongod 2.0 processes should be running when the 2.2->2.4 upgrade process takes place and the 2.4 mongos attempts to detect any running processes and order to abort safely.
However with secondaries (i haven't yet tried it to see what happens if they are primaries) running 2.0 the mongos seems to miss them and continue the upgrade anyway.