Errordump fixes

Closes #844
Closes #842

Had to introduce the key value store since the last known error dump might not be the last one saved on the list, iff the newest error dump has been deleted by the user.