core: safety protection on handing incoming messages without setting local socket