close connections fixed