write cop to a file before appending it to the log

... and discard all the configuration files that don't appear in the log.