Fix application does not raise error when open output file failed.
Merge pull request #1 from tri-star/hotfix-output-file

Fix application does not raise error when open output file failed.