Commit 20b3e07f63ef3b80e9817fb2d35573fc175a6d09

Con Kolivas 2011-07-14T11:03:14

Implement signal handler and clean up properly.