Graceful

This will handle INT and TERM signals by shutting down right away if capacitor is not working, or shutting down on the next loop if capacitor is.