Exit irust loop if line is nil.

This appears to trigger an exit if ctrl-d is pressed (tested locally).
Merge pull request #2 from tpitale/patch-1

Exit irust loop if line is nil.