add ignored file to .gitignore
ensure connection close