Code cleanup
Fixed handling of WinForms exceptions
Fixed ArgumentNullException in InterfaceDialog