Add applet close method