fix a error (Exception when service-stop)