catch exception when unable to find writable share