Return nil if pid not found.