Handle XeLaTeX hanging on error
If there is an error when compiling the XeLaTeX-Document, currently the process just hangs and doesn't react anymore. This needs to be easier to debug and the LaTeX-compiler should abort the process on error, Marking the generation of the file as failed. (Also: save the log file in that case?)