Fix window destory & add debian

1. Reparent the windows and destory it
2. add debian

Change-Id: I71c8974e926bff01db6cc72d4b824ce40ec02742