Fixed non termination of Executor backend, when sc.stop is not called.