modify daemon stop