update_machine_status now uses the machine to adjust the status
Fixed a bug when on_node is nil - it was crashing.