Catching SIGTERM event in strapi v3

Hi, I want to capture the sigterm event sent by kubernetes, so that i can listen to that event and do some clean up, Where exactly should i do that in my strapi v3 project??

System Information
  • Strapi Version: “3.0.0-beta.16.5"”
  • Operating System:
  • Database: postgres
  • Node Version: 12
  • NPM Version:
  • Yarn Version: