[TASK] Clean up file descriptors when we're done with it