tcp_connection send/recv fixes

- Added "timeout" status.
- Fixed some error-handling bugs.