Please create a function of it, `function cleanup() { ... }` or something like this.