Try catch rimraf