Fixed #6978: Dependency Injection Container not reset when destroying application in functional tests