Fix error handling in the daemon
Fix error handling in the daemon

Signed-off-by: Martin Sustrik <4dd6061be1198639e8b05ce4fd5ead7a0dcaa0f4@250bpm.com>

reqshark/tcpmux,sustrik/tcpmux,reqshark/tcpmux,sustrik/tcpmux