Fix textual not disconnecting properly with proxy enabled