Cleanup for scripts