fixed bug if file could not be received --> file was still sent, but client did not recv;