Crash closing document in middle of shape creation

Steps to reproduce:

  • open Inkscape
  • switch to any of the shape tools (rect, ellipse, spiral, 3dbox, polygon)
  • drag to draw a shape
  • without releasing the mouse click, Ctrl+W to close the document

What happened?

What should have happened?

  • No crash

Version Info:

  • Inkscape 1.1-alpha (04f053a8cc, 2021-04-05) Linux Mint 20
  • Inkscape 1.0alpha (9dee831, 2019-01-15) appimage Linux Mint 20
  • Inkscape 0.92.5 (0ad1ac969f, 2020-08-06) Linux Mint 20 (most of the time?)