exit daemon on failure