invoke script cleanup