This error is usually caused by having a ghost session open or by a permissions issue with the file.
The easy fix is to either close the ghost session or shut down MDaemon and then rename or delete all the log files from the MDaemon\Logs directory and restart MDaemon.