Closes #1218 (closed). The problem was due to failure to index the archive in ES. The old error handling attempts to catch errors and index only a minimal record in ES in case of failures, but the problem was that errors from the ES indexing step itself were not caught. This merge extends the error handling to catch and handle also such errors.
One problem is that these errors may occur after the archive file has been written, so the error attributes might be set in ES but not in the archive file. To make sure that these errors can be viewed by the user, fixes are applied to the log view page in the UI, plus some improvements.