Catch StreamClosedError when reconnecting after a stale connection