cancel the current command if new command issued