Remove close(fd) before panic
Prepare code for importing a future object structure