catch exception raised by reads shorter than k