package Ġcom . network nt . email Ċ Ċ import Ġcom . network nt . kafka . streams . Light Streams Ċ import Ġcom . network nt . server . Shutdown Hook Provider Ċ import Ġcom . network nt . service . Singleton Service Factory Ċ Ċ class ĠEmail Shutdown Hook Provider Ġ: ĠShutdown Hook Provider Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġon Shutdown () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstreams Ġ= ĠSingleton Service Factory . getBean ( Light Streams :: class . java ) Ġas ĠEmail Sender Streams ĊĠĠĠĠĠĠĠ Ġstreams . close () ĊĠĠĠ Ġ} Ċ } Ċ