Fixes problem when dance does not stop after all scripts are finished.