Improved temporary file name generation on Windows, and error handling
Merge pull request #24 from SteffenL/improve-temp-filename-generation

Improved temporary file name generation on Windows, and error handling