smart-http: Don't deadlock on server failure