Fixed the bug in text migration.
Clicking on logout will clear the session on client and disconnect.