Extract method isRunning() indicate command is running