Fixed ObjectDisposedException being thown when disposing