begin
  while true
    sleep 1
    puts "Sleeping"
    $stdout.flush
  end
ensure
  puts "Ensure was called"
  $stdout.flush
end
