Bug fixed: closing chat is caused athentication error if close had been run before starting new long polling