Fix add friend problems + exception in Tox thread startup