throw exceptions rather than close connection
fixed imports
Merge pull request #404 from dcapwell/infinite-loop-in-MasterClient

[TACHYON-123] throw exceptions rather than close connection