Fix when cb is null. Check if fd is open. Move 2 function to private.