Automatic and/or continuous temperature control in the preparation of azo compounds