Check that socket is intilialized