Added window closing handlers for log window to ensure that
show debug window checkbox is unchecked when log window is closed.