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

Addresses #1854.
This is close to ignoring the error in my mind :) Shouldn't we reject in this case? - When does this happen, only on connection or if the connection is lost in the mddiel of a query?