Added in purging of unused runtime managers.

runtime manager is purged when there are no active workflows for the runtime manager.