check if there is a dbh before calling disconnect