SIGINT trapping and error handling.