Clean up logging, CF leaks.