Remove unused variables in profile_utest.c
Emit log messages when connecting to servers fails

always, not just when tracing is enabled.
Unit test errors from a failed connect.

Test that errors are logged and do include the hostname, port
and error message.