anchor.diff:                          let errn = NN.Errno()
                           let errm = NN.StrError(errn)
                           //11 Resource unavailable, try again
  -                        sprintf "Error %i checking for master (recv). %s." errn errm |> log.Warn
  +                        if errn = 11 && errm = "Resource unavailable, try again" then
  +                            sprintf "Expected error checking for master (recv). %s." errm |> log.Trace
  +                        else
  +                            sprintf "Error %i checking for master (recv). %s." errn errm |> log.Warn
                           false, errn
                       else
                           true, 0
  -                let r, errn = recv ()
  -                if r = false && errn = 11
  -                then recv() |> ignore
  +                match recv () with
  +                | false, 11 -> recv() |> ignore //we try again
  +                | _ -> ()
                   isMasterRunning <- buff.[0] = 1uy
               if isMasterRunning then
                   sprintf "Master is already running. Terminating." |> log.Warn
                   NN.Shutdown(nsocket, eidp) |> ignore
                   NN.Close(nsocket) |> ignore
  +                ok
               else
   
               let socket = NN.Socket(Domain.SP, Protocol.SURVEYOR)
  
positive.code: Ormonit [options]
  
  Options:
      -n close|status
  "
  let log = LogManager.GetLogger "Ormonit"
  let olog = LogManager.GetLogger "_Ormonit.Output_"
  
negative.code: logConfig.LoggingRules.Add(rule2)
  LogManager.Configuration <- logConfig
  
  let parseAndExecute argv : int =
      let ok = 0
      let unknown = Int32.MaxValue
      let openedSrvs: OpenServiceData array = Array.create maxOpenServices OpenServiceData.Default
      Cli.addArg {Cli.arg with
                      Option = "-cmd";
                      LongOption = "--command";
                      Destination="command";}
      Cli.addArg {Cli.arg with
                      Option = "-n";
                      LongOption = "--notify";
  