script close to finished