timeout & generic socket error handling