FIx base.Dispose is not always called in SampleApplications