Add more error checking to the boot script