CloseShellsExt doesn't work properly

Test fails due to unclosed shells