Added reconnect on connection fail and updated gitignore to ignore additional configurations