Added logging to teardown