Thanks! I was able to reproduce this. It was not related to dark mode but to a change that handles how windows are closed. This has been fixed for the next beta.