CloseAllShells method implemented (fixes #330)