Fixed the Broken Pipe error thrown when dropping some of the input
e.g. when piping search or mine to less, and stopping before scrolling all the way down
Fixed by wrapping the for-loop in an try: except IOerror.