Parsing the exception message is not exactly the most elegant solution but needed since we don't get a proper Timeout::Error here.