exit snippet; improved .gitignore