Log out and put the last update back when an error occurs