CFY-888 fixed bug from previous commit related to teardown on exception on provision