Fix. implement in method writeStreamErrorOccured: call delegate method if delegate implement writeStreamErrorOccured: