Widening scope on Shell::close()