Add "New Project" function and close project file after parsing or generating it.