CLC-1671 Recover from PostgreSQL connection failure if possible