binding socket on error after removeAllListeners