notify tree in async thread. Fixes #534
Added a test case for 'CloseAllShells' method