proplery close connections and stuff