only call shutdownWrite() if there is no expectedSize
Merge pull request #119 from dwrensha/streaming

only call shutdownWrite() when there is no expectedSize