Inifinity loop between server and client, added exiting app by refusing connection