[sr-dev] git:4.0: core: Fix connection leak with websockets