Integrate callback function to display thread socket status - Failing atm