Do not close the gatt until the on disconnect callback has happened or the callback won't happen.