public override void Dispose() { if (!Stopped) // Check if stopped already to avoid that Stop() is called two or three times { Stop(); } }