[BUG] _socket could be undefined/null