Added upgrade and relaunch only on running