Error in rerun of runtime directory not detected

If a runtime directory is rerun and terminated normally before, a rerun producing an error is not catched by the routine as the *log files are not overwritten but appended to.

Could be solved by removing the log-files (if present) prior to run.