Improve python error handling

Add a failed flow status just for reporting the status of flows
that fail to execute at all.