Upgrade only standalone mysql gears and stop before exiting.

[merge]