Fixes #8006 - added STDOUT proxy log option

(cherry picked from commit 31728207f7486ac4fc42d2580dd7debc4c34c9b3)
Fixes #8320 - shutdown shell provider threading fixed

(cherry picked from commit 81c679ec9bac2ec1def148f45a9f85822be409cf)