Fixed issue that was preventing logged data from being dumped to text file once buffer was filled.