fixed chunked data transfer (asking next chunk by receiver)
fixed duplicated callback on error