add templates to service lifecycle

thread base consumers hang and make context take longer
than it should to shutdown