Stability improvement of broker service restart function

The restart function of the broker service in MKG has been modified. Previously, active broker processes were not considered during a restart, which could lead to issues. From now on, all active broker processes are first checked and safely stopped before the broker service is restarted. This is intended to ensure a more stable and secure restart.