Call shutdown() method on the ProcessContainer when shutting down sensor
manager using CTRL-C.

This fixes a bug with stray processes.
Also make sure we call sensor_container.shutdown() on SIGTERM.
Use .keys() instead.
Fix some typos.