Fix exception syntax error in daemon