Exit flaw

LS,Bricscad goes in debug mode on exit. It doesnot matter if i use the file menu oror the exit icon in the top-right corner of the main window.All open files and settings are correctly saved. So there is no data loss.The program exits withe an unhandled exeption.Regards,Henk Jan