wait readable error handled