stick a hack in for socket.close() not working whenw e wake from sleep sometimes