    001package net.minecraft.client;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.awt.event.WindowAdapter;
    006import java.awt.event.WindowEvent;
    007
    008@SideOnly(Side.CLIENT)
    009public final class GameWindowListener extends WindowAdapter
    010{
    011    public void windowClosing(WindowEvent par1WindowEvent)
    012    {
    013        System.err.println("Someone is closing me!");
    014        System.exit(1);
    015    }
    016}