Replaced absolute file path (pointing to /tmp/) with local file path to avoid issues on Windows. Improved messages in case of exceptions.