Adding some exception handling to the file writing portion of the code in jekyll-post.