Changes not saved when Anki receives SIGTERM

I’m using Anki 2.1.26 on Ubuntu 19.10. When I’m manually closing Anki with File/Exit or with the X button, my progress and every changes are saved as expected. But when Anki receives the SIGTERM signal, for example when I’m shutting down my PC, then Anki doesn’t save my progress or any changes that I made since I opened it.

Thank you for the report, I will look into it.