Socketpool

Add try finally arround socket pool usage.
Remove duplicated class.
Add more missing timeouts on sockets.