catch socket close event and display

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>