The parameters you're providing to closeDoc are not valid. It only takes a single parameter, bNoSave, which is a boolean that specifies if the document should not be saved.
The default is false, meaning the user is prompted to save the file if it has been changed.
I searched for 'bNoClose' and found little information on it. Would you be so kind to midify my sample with the 'bNoClose' command?
From the Acrobat JS API Reference:
(optional) A Boolean value indicating whether to close the document without saving:
If false (the default), the user is prompted to save the document if it has been modified.
If true, the document is closed without prompting the user and without saving, even if the document has been modified. Be careful in using this feature because it can cause data loss without user approval.
There is only parameter for the 'closeDoc' method.
The Acrobat JS API Reference is a free download from the Acrobat Developer area of their web site