db.postgresql.lib: if PQsetdbLogin fails, PQfinish must be called
imap.tests: created connections needs to be disposed