improved daemon stop