Ping the machine first.
If ping is good then check for a flag file on the share
If good THEN map the drive.