Add a new test: reset device when catching SIGINT/SIGTERM.