file cleanup, renders errors