Fix a few memory leaks.
Split the xml file, and destroy task, to fix memory leaks.
Use splitted xml files, and avoid memory leaks in the parser.
Free timer after it's been used.
Avoid to export internal variables.
Fix a few more memory leaks.