Close AR connections when finished with work in non-web threads (TORQUE-929)