Check for None on process.returncode