Property of Application.
Specifies whether the application closes when all the references to it are released. The default is TRUE.
object.AutomaticClose
Boolean