Added log output to windows debug
fixed disk file operations in service mode