Added a logout of machine handler and have it add a machine event when the user logs out of the machine.