Added ensureRunning flag