Close the publication once this program is running option