server: change use of deamonize function to daemon() add treatment to recv err