added error handling on exec_procs