Add connection retry in the client if the current connection throws a SSL or Broken Pipe exception