Fix pil fp closing