now playing script and confirm on exit