Fixed bugs in LogController, CRIOHandler and LogWriter.