Handling of connection problems

Missing connections to the Matterhorn server could cause the capture
agent to die. This commit fixes this.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>