initial implementation of window destruction.