found a bug on WinForms; pressing "yes" on exit dialogue is throwing an exception.