Revert "[FEAT] Replace useless Sleep function with reboot"

This reverts commit 61efdcfef1338a0b38d9b39735027802d7cd311d.