use finished to avoid fd leak in stream-file
fix test in negotiation
Merge pull request #25 from dead-horse/stream-file-finish

use finished to avoid fd leak in stream-file