Handle mkdir error