Add test case for graceful failure on OSX.
Merge pull request #770 from mhaskel/osx_graceful_failure

Osx graceful failure