CRITICAL BUGFIX: IOStream could ignore timeout event