Added try catch exception error handling for each process