we close our file descriptors before exiting