Close

(Project Properties window)

*.prj (or .apr)\PROJECT\
Command_Open_Close\Close

Specify one or more commands to execute when the project unbinds from a connection.

You can specify any command accepted by RealView Debugger, such as deleting macros created for the project.