close macro modal upon executing macros