more safe code, fix resolve

* resolve now does resolve and not a search
* try/catch around send so disconnected clients don't kill server
* more logging