SIGINT and SIGTERM should be used.