Capture error and throw exception on Stream fopen
Merge pull request #198 from ianbarber/master

Capture error and throw exception on Stream fopen