Stop catching the exception that can happen when importing (and thus ignoring it) and just let it throw. Script execution stops, but that is good.