added dump of logs to the interpreter such that it also dumps if an error occurs. This is needed if the log is used for e.g. guard diag.