Close scripts menu when script is launched