clean up script and global state