catching SIGTERM in example application