fixed stopping daemon