[FIX] Leaky file descriptor