Saving in a separate message window and closing it before the save is done can cause use-after-free in the callback of the save, expecting the parent window object being a valid GtkWindow.