fix timeout on closing the drawer from trying to set state when not mounted