Fixed a file path issue, isolated error logging.