removed slow connection bug

the packets added between the request and the received data when sending
data were deleted
also: further improved error and log handling of connection_manager