Trap INT and TERM signals.