ShapeDiver v3: closing viewer instance / scenes overlapping

I can’t seem to ‘close’ a viewer instance.
Whenever I call ‘close()’, the promise is not being resolved.
Example code:

      globalThis.session?.close().then(() => {
        console.log("Session closed? This will be logged!")
        globalThis.viewer?.close().then(() => {
          console.log("This will never be logged")
        })
      })

The ‘closed session’ will be logged, but still it sometimes happens that the old scene remains in place and overlaps with the newly loaded scene.
Any help would be appreciated.

Hello @post8,

I created an example where I tried to reproduce this issue, is there anything that you are doing differently?

Cheers, Michael