fixed minor warnings for qualify with this, and boxing
added safeClose() to ignore possible errors
added remoteHost variable to store clients ip
added thread variable to store sockets worker thread (for later interruption)