To prevent the system to hang on "detaching uhub0" reboot using the flag -n:

shutdown -o -n -r now