Improved timeout handling in PaymentRequestHandler.