Fix crashing when database is locked by another process.
Localize reporter.
Add retry predicate.