handle error state for process