Fixed CloseAllShells extensions

This should fix the following error

The following shells remained open [Progress Information]