If it's the Access screen that's flashing, it will be a matter of tracing
the events that firing when you exit.
Is there a form loaded at the time?
Is there code in its Unload or Close events?
Other events may also fire, e.g. the form's Current and Deactivate event,
and possibly BeforeUpate/AfterUpdate and even the events of the controls.
If you have class modules, there may be events there also.
If your screen is flashing *after* Access has closed down, there are other
issues at play.