Looking at the last error in the log, it turns out that the error was a stackoverflow exception for some regex parsing of my script. I added -Xss5M to the java VM opts in the .bat file and now it works again.
Run all SQLs sometimes stops working