Add socket timeout handling (50 seconds)