Robustness in nonsmooth nonconvex optimization problems