Used runningCommand flag to block quit.