Duplicate of #1416
I don't know what signals your OS is sending to Geany, but if it's not sending `SIGTERM` Geany won't even try to save the session. We could probably add other signals to be handled if it makes sense (mentioned in the comments on #1255).