Fix. Return nil from read callback means EOF.