Added functionality to gracefully shut down Client thread in onPause