Having added the function of fault-tolerance and log out