Implemented Signal handling to stop DAQ program