Changed try except logic for SimpleServer and updated SimpleClient