Adding a separate trap for TERM that keeps stored sessions intact.

Fixes #1. This way, sessions are only deleted if the user
explicitly exited the session (rather than the process or parent
process being killed). We may want to allow for trapping more
signals than TERM (e.g. INT or QUIT).