fix #3 writeStream "finish" doesn't fire