Improved behaviour when deleting multiple items

Added a logger
Committing after each history item is cleaned
The cleaning view catches exceptions and logs them