Added error check on logout, delToken when fail