Make the device restart optional