cleaned up socket listeners