Implemented retry logic when socket connect() fails.
Updated log level and messages.
Updated .gitignore file.