Removed a potential deadlock, added logging for all raised exceptions, made _to_error more solid and removed another potential encoding issue when creating diffs
Removed a potential deadlock, added logging for all raised exceptions, made _to_error more solid and removed another potential encoding issue when creating diffs