Send zero-chunk on exceptions

Dont know if this is the best solutions, but now there will be a 0 chunk on the last part of exceptions.