It's definitely a bug. It will continue until the enemy dies, even against raid bosses.