cleanup client code that manages token