Close Postgres connection