You'd have to store the information temporarily in a custom @window, or a file or something. Then parse through the @window/file in the on sockclose event.