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

Addresses #1854.
@janmeier we might not be able to reject at this point though, it could've happened after the connection was initially resolved.