main: Terminate cleanly for TERM and INT

This makes it possible to instrument the application for memory leaks
and other required sanitization at termination.

Change-Id: I94741c4df746d5cc65ce77ad5cf86ef505b7576b
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed