[Tak] Fix disconnecion issues, but new window bugs still need to be fixed