Update app.py

Dispatch 'on_stop' and clear window widgets when manually calling App.stop()