Make sure the environment shutdown for the current thread is called after each request processing, even in case of errors.
Make sure the environment shutdown for the current thread is called after each request processing, even in case of errors.

This ensures that the db connection pool will get cleaned-up appropriately and that no permanent shortage of db connection can happen.

Closes #4465.

git-svn-id: eda3d06fcef731589ace1b284159cead3416df9b@6261 af82e41b-90c4-0310-8c96-b1721e28e2e2

netjunki/trac-Pygit2,jun66j5/trac-ja,walty8/trac,jun66j5/trac-ja,netjunki/trac-Pygit2,walty8/trac,jun66j5/trac-ja,netjunki/trac-Pygit2,jun66j5/trac-ja,walty8/trac,walty8/trac