listen to SIGTERM
implement getter