added null checks on cancellation tokens being called when stopping a startable service