On occasion, the SSH connection to the machine being rebooted is not gracefully terminated after shutdown -r is executed by Linux.pm::reboot. The SSH command returns Connection to <VM IP address> closed by remote host.:
utils.pm::run_ssh_command then makes 2 more attempts to call shutdown -r. Both of which expectedly fail because the computer is already in the process of rebooting.
If the user initiated a reboot, a CRITICAL message is sent: