send App.open and App.quit event to all windows

Fix #787