tmp files removed before the end