handle error case on dconn.Close()