Remove unused onclose method.