Added line to close pgsql session.