Before closing screen check if user should be warned. Will provide warning if:
1) Maintenance pattern and controller is dirty.
2) In line maintenance pattern and editor is shown.
3) Integrated finder maintenance pattern and maintenance panel is dirty.