Steps to reproduce: 1. start bbcb2 2. click File->New 3. enter some text 4. try to close bbcb2 window Expected result: bbcb2 closed Result: bbcb2 shows NIL dereference error and hangs Environment: bbcb2 2.0-a1 build 150 OS ubuntu 22.04