don't call end prematurely in queue transform

it resulted in 'write after end' errors
add tests for queue transform if error midstream
0.10.11
Merge pull request #65 from Clever/dont-end-prematurely-in-queue-transform

Dont end prematurely in queue transform