Added some logging, simplified error messages
Regarding the issue of Socket hanging due to incorrect port number:
	It actually doesn't hand; the connection just times out and an exception is thrown
	I added an appropriate error message for that