BUGFIX: Log file is now closed on exit & cleanup code is called implicitly via the destructor.