Archiving of error messages

WIP