Unraid should time out and force a shutdown once the timeout has been reached. If Unraid doesn't force a shutdown, you have other issues. This should happen no matter what the remote shares are doing.
Some have reported issues with dockers using remote mounted shares. I'm thinking your docker may be hanging the system when the remote share goes off-line.