Handle access and path length exceptions.