Dispose frame on exit for page and OCR analyzers.