Now the "done" flag is no more set if writing the .wxm file failed.