SCRIPTS: Make exceptions more targeted

When the script is in a while loop with a try statement, using Ctrl+C will
throw an exception. Don't need that, just need the script to terminate.