trimming messages received from daemon
- Closing liner on error
- running ws client Connect when running cli