Bug fix - Check for active cloud socket in Spark.process() method