a couple quick fixes

- fixed the crash when the line breaks by checking length before
substringing for "/" (117)
- The only other thing I'm seeing at the moment is that after
disconnecting a Client Class, the terminal window is catching an
"IOException: Stream closed." I know it's coded to do that whenever a
thread closes, but I'm wondering if that's supposed to be in the final
as well. For error checking, distinguished the two IOException lines --
it catches the exception after in the run method (which makes sense)