Update PTYExample to reflect API changes
Always schedule success/failure/complete blocks on main thread