[sr-dev] git:master:dadd54a4: xmpp: close fd in case of write error