Added catch for mkdir fail