I have a hard drive that is failing.
I am trying to get as much data off of it before it dies forever.
I have the computer with the failing drive connected to one computer, and another computer is copying the data across. Inevitably the failing drive fails and unmounts (or freezes) which causes the network share to disappear.
If something was in the middle of something, eg copying, that share won't unmount, and the computer gets a zombie share that stops the PC from shutting down quickly and cleanly.
I can get a similar thing to happen if a network share is mounted when I try to shut down. The computer hangs, but does eventually shut down.
Obviously unmounting network shares before shutting down will solve half of this battle, but is there a better way to resolve either of these situations?