Stop crashing on logout