Catch file creation exception and return nicely, Fixes #1