Added thread acquire to reboot and shutdown funcs