# File wmiirc, line 24
def throw_life_saver aError
  system 'xterm &'

  IO.popen('xmessage -file - -buttons "recover from error:0,ignore this message:1"', 'w') do |f|
    f.puts aError.inspect, aError.backtrace
  end

  system($0 + ' &') if $?.exitstatus == 0
end