Check phantomflow exit code and return failure