fix: respect `store_failed` when using daemon (#3571)