Fixed closing connections and a minor issue missed w/ post requests.