error handling in teardown of temp.config