fix bug && add stop auto_restart

Change-Id: I7512c9ae900e68c487f28821e21697bd39cc1e43