handle logging out of the system.