Fixes error handling if process not found