Fixes double callback call
writeFile should end if exception is catched but there is no callback
Merge pull request #5 from ffissore/master

Jsonfile doesn't behave nicely when used inside a test suite.