use try/except around file creation
Merge pull request #9 from joelsemar/master

try/except block for file createion