If this project is currently active (in running state), any running code will be stopped prior to closing the project. This method will fail and throw &H80030005 if the project cannot be stopped or closed, which happens if this is the only project loaded or if this project is referenced by another one.
The Close event is fired by this method, which may cause the operation to be cancelled.
The user will be prompted to save the project if it was modified since the last save or since it was loaded.