def start
      while true
        begin
          break if eventLoopBody == :halt
        rescue
          @logger.error "Unexpected exception in reactor event loop: #{$!}" if @logger
          @logger.error $!.backtrace.join "\n" if @logger
        end
      end

      @logger.info "Reactor shutting down" if @logger

      # Event loop finished
      @ioInfo.each do |k,v|
        k.close
      end

    end
def start
      while true
        begin
          break if eventLoopBody == :halt
        rescue
          @logger.error "Unexpected exception in reactor event loop: #{$!}" if @logger
          @logger.error $!.backtrace.join "\n" if @logger
        end
      end

      @logger.info "Reactor shutting down" if @logger

      # Event loop finished
      @ioInfo.each do |k,v|
        k.close
      end

    end
Run event loop