unhardcoded socket name
added timeout on connect and error handling on binding.