Ensure PostgresSQL DB connection handle is closed after being used within a block in connect2().