Simple collection at shutdown

We unfortunately cannot override Phabricator's error listener as it gets called after our hooks.

Instead we instrument simple message capture (not ideal).