daemon: Report an error if writing to the status pipe failed