Add a 1 second sleep before reboot/halt to try and ensure the wait page
is displayed