fix: check that socket is created