Bugfix for export logs. use the stream's finish event to complete promise. Remove magic number callback.