resolve instead of close