Improve shutdown procedure for SpooledDirectory
Add check of local shutdown in Network transactions