add 'end' event for socket