Log: log is now cleaned up on destruction. Plugs a massive memory leak.