Cancel receiving file method will not close connection now.
Refactor cancelReceivingFile to cancel receiving current file rather
then close the connection.