Fix a timeout error not being correctly propagated