made sure we close connections