Threads pool, Unix Domain socket, bug fixes and optmizations