put try and except for process run and provide an exit code of process run fail