Each write_all is check for errors (when it makes sense) with own perror call, so don't dupplicate messages.