Use atexit instead of signal handlers
Add CTX back to initialize
Merge pull request #221 from rgardner/atexit-cluster-shutdown

Use atexit instead of signal handlers