Adding gitignore and removing while True from reconnect