Removing temporary file and adding to ignore list