Fix changed status from running to restarted when restarted leo-manager