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

Addresses #1854.
Yeah seems like a decent solution.