io: call finish function after fd is actually closed.