reboot: Use threads to avoid slowing down UI