Usually you can kill any endless loop with the task manager.