linux mounting drive issue

While shutting down the linux system, it checks the mounting drives it hav, and if the mounted drive is on network, and that network system is shut already, the system get hangs, and it has to shut forcefully
Is there a way, so that, mounting drives are unmounted automatically, when the other machine on network is shut and it get mounted automatically wen both machines are up???

Server:centOS 5.3
Client: Windows xp

TIA