gnome – Shutdown or restart instantly stops running applications

When I select either shutdown or restart from the gnome menu, all running applications are stopped instantly and don’t seem to get a chance to close gracefully. When the machine is restarted applications have either lost data (eg inkscape) or offer to try to recover (eg libre office writer) or say the crashed (eg chrome). I assume this isn’t correct and either applications should get a chance to close, or they would prompt to save data. I am using ubuntu 20.10 with gnome desktop. Quite new to Linux so don’t know what logs to look at what parameters to check