Improved handling of message overload.
Database failure resilience
Minor tidies and improved diagnostics.