Fixed segmentation fault when closing streams using the blocking interface.
Merge pull request #5 from potat0/master

Fixed segmentation fault when closing streams using the blocking interface