Fixed orphan log file created after cmd.clean() was called.