Fixed issue with getCookieToken method callback not called after server restart.