pgsql: Move real close into the destructor. Also destruct the conxion object directly, to make sure that the filedescriptors actually get closed.