Basic app framework
Respond to INT and TERM signals