This is a quite old issue but I have tested with the last version and this is still happening.
The game crashes when you close it and does not properly terminate.
This was the workaround to prevent this from happening https://github.com/faceit/gelectron/commit/f190c03cecb0a223245c84f8eab67bf40920ab87, but probably not a correct fix.
Tested in CS2.
the design and code structure is a bit old,
to fix some clean up issues, compability issues, extend the features, and better window manage , the library needs a redesign.
This is a quite old issue but I have tested with the last version and this is still happening. The game crashes when you close it and does not properly terminate. This was the workaround to prevent this from happening https://github.com/faceit/gelectron/commit/f190c03cecb0a223245c84f8eab67bf40920ab87, but probably not a correct fix. Tested in CS2.