error render cleaup