Disabled receiving part in socket, better, but there is core dump due to socket at exit