Catch error during execute process
Removed unnecessary code