Intercept SIGINT during ioctl recording.

Ensure that an ioctl record gets written if the recorded program gets
terminated with Control-C.