Handle ctrl-c to print partial scans