I have a Windows Forms application in C# and have been consistently getting an ObjectDisposedException when I close the application via the standard X button in the corner.