Catch and handle buffer underruns.