# File lib/amqp/connection.rb, line 93
  def self.stop
    if @conn and not @closing
      @closing = true
      EM.next_tick do
        @conn.close {
          yield if block_given?
          @conn = nil
          @closing = false
        }
      end
    end
  end