It happens quite often that the pdflatex compile process will not terminate.
E.g. you compile a node in a tikzpicture environment and forget to place a ";" at the end of a node definition.
Therefore a button to terminate the compile process is needed.
Here is a minimal example that will not terminate.