I guess it's safe/normal to detach an MTD device from UBI before rebooting ? I'm asking because detaching is the only way to shut down the UBI background task (ubi_bgt0d). I do not want this task to start a flash erase operation or whatsoever just before the actual reboot takes place.