[BISERVER-11770] Shutting-down existing scheduler properly so it's not orphaned in the JVM preventing JVM shutdown.