BZ-982247: when a clone fails, the directory with previous configuration reamins, so it's necessary to raise directory in case of errors