# File lib/daemons/cmdline.rb, line 104
    def catch_exceptions(&block)
      begin
        block.call
      rescue CmdException, OptionParser::ParseError => e
        puts "ERROR: #{e.to_s}"
        puts
        print_usage()
      rescue RuntimeException => e
        puts "ERROR: #{e.to_s}"
      end
    end