Connection keep-alive and error rewrapping

- Add connection keep alive as default header.
- Error rewrapping issue