in case socket is not opened