Added remote window destruction