MainForm.cs: fixed disposed access errors on app close