I fixed this crash by saving first the data and then killing the application. However I'm still leaving it open because I don't like the nesting part of it and that it seems to me that we do no need the debugging_window to save the data, we just need an access to the `docking_layout_manager' from the debugging window which could potentially be stored in the debugger_manager (I haven't looked at the previous code to see the difference).