I would inline these error blocks 
`if err := daemon....; err != nil {...`