Fixed QApplication cleanup.
Fixed QApplication cleanup.

Fixes bug #396.

Reviewer: Hugo Parente Lima <4149ba590530c5cd07e8f8a561f4e06e17776179@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>

IronManMark20/pyside2,M4rtinK/pyside-android,enthought/pyside,gbaty/pyside2,enthought/pyside,pankajp/pyside,PySide/PySide,pankajp/pyside,PySide/PySide,RobinD42/pyside,pankajp/pyside,M4rtinK/pyside-bb10,RobinD42/pyside,RobinD42/pyside,M4rtinK/pyside-android,RobinD42/pyside,M4rtinK/pyside-bb10,M4rtinK/pyside-bb10,IronManMark20/pyside2,BadSingleton/pyside2,gbaty/pyside2,BadSingleton/pyside2,pankajp/pyside,gbaty/pyside2,enthought/pyside,qtproject/pyside-pyside,M4rtinK/pyside-android,M4rtinK/pyside-bb10,enthought/pyside,enthought/pyside,PySide/PySide,BadSingleton/pyside2,M4rtinK/pyside-bb10,M4rtinK/pyside-android,M4rtinK/pyside-android,pankajp/pyside,qtproject/pyside-pyside,BadSingleton/pyside2,M4rtinK/pyside-bb10,IronManMark20/pyside2,BadSingleton/pyside2,PySide/PySide,RobinD42/pyside,enthought/pyside,M4rtinK/pyside-android,IronManMark20/pyside2,gbaty/pyside2,qtproject/pyside-pyside,gbaty/pyside2,IronManMark20/pyside2,qtproject/pyside-pyside,RobinD42/pyside,enthought/pyside,RobinD42/pyside,PySide/PySide,qtproject/pyside-pyside