close socket when Protocol emits end
listen socket end events