The SIGNAL event allows you to perform some actions after the command execution was interrupted.
@Event("Symfony\\Component\\Console\\Event\\ConsoleSignalEvent");
public const SIGNAL = 'console.signal';