Add error handling to capture Ctrl-C, in order to shut down power supply before quitting program