def setup_traps
      ['INT', 'TERM'].each do |sig|
        trap(sig) do
          EM.next_tick do
            terminate
            EM.stop
          end
        end
      end
      true
    end
def setup_traps
      ['INT', 'TERM'].each do |sig|
        trap(sig) do
          EM.next_tick do
            terminate
            EM.stop
          end
        end
      end
      true
    end
Setup signal traps

 === Return
 true:: Always return true