Gracefully handle SIGTERM as well as SIGINT, feature #5672

SIGTERM is caught by twisted, so if we want the app to handle it,
we have to use addSystemEventTrigger() just before reactor.run().

See https://leap.se/code/issues/5672 for more.