Handle InvalidPathException