Kill connection on failed write.