Fixed server file, now catches EOFException.