I'm not sure if this has been implemented that way (that's Paul's area,
not mine), but the intention was that the nbd kernel module would only
do cleanup once the nbd-client process exits.
That is, if nbd-client has
not yet exited, that could be because it's in -persist mode and is
trying to reconnect.