Fix "segmentation fault" while closing synfig