Added code to logout of root session when update script done