exit when daemon failed.