Stop a Postgres restart (or error) taking the whole app down

Addresses #1854.
Ah ;p well then yes we should probably do something about that.