> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On Project Closed

> On Project Closed event reference for FlexiCapture shell scripts: fires once project closing finishes after the user confirms the inquiry dialog.

## When it is launched

The script is launched when closing the project is finished after the user confirms the action in the inquiry dialog (if it was).

## Parameters

| **Name** | **Type**                                                         | **Access** | **Description** |
| -------- | ---------------------------------------------------------------- | ---------- | --------------- |
| Context  | [IMainWindow](/flexi-capture/appendix/scripts-shell/imainwindow) | Read/write | The main window |
