handle sigterm, inform about exit

resolves #445
Merge pull request #448 from LudwigOrtmann/pyterm

handle sigterm, inform about exit