removing defunct window