Handled error where receiver prematurely closes connection.
Handled error when sender prematurely disconnects while uploading
Merge pull request #23 from Surram/sender_disconnected_error

Sender disconnected error