JAVA-1202: Made connection volatile to remove race condition, and removed isRunning, since the executor is single threaded anyway.