Added some logging for the wake from sleep bug
stick a hack in for socket.close() not working whenw e wake from sleep sometimes
log more stuff
stop some things from appearing in comms log unless trace is on