Handles SIGINT signal.