Cleanly exits from log commands. Fixes #104.

This captures interrupts (ctrl + c) when running the `log` and `applog` commands and lets them close cleanly without printing the exception to the terminal.