handle SIGTERM like SIGINT (cli)

Proposal to solve #127