Output stats to stderr to prevent disk flushing including them.