SPARK-968, added sc finalize code to avoid akka rebinding to the same port