Catch PG::ConnectionBad.