Bound error event to process.stdin to help manage errors involving streams

EPIPE errors can result from configuration issues or having math not work out. This gives the user a chance to capture some of those errors instead of losing the process entirely.