Change closing that could fix native debugging