Make Handle.onClose static.