Only close final connection if user meant to