Handle EBADF