This is what I meant.

But if you mean you killed the process, started another and then
close takes a long time, I don't know why.

The system call “close” is taking a long time to return.