Configured latexmk to stop its job if error is encountered instead of wainting for user input.