UpdDir try|catch block