log window destruction