flush stdout before reboot incase of log doesn't sync to disk