Removed unused local variable
- Added socket read timeout (defined in AbstractConection)
- Fixed some missing stream flush and close