Error corrected

For small files, cryptor finishes after just one read, which is why we
have to inform the connection before that.