    001    package net.minecraft.client;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import java.awt.event.WindowAdapter;
    006    import java.awt.event.WindowEvent;
    007
    008    @SideOnly(Side.CLIENT)
    009    public 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    }