It\'s clear that a keyboard interrupt can interrupt code executing in a command shell on various operating systems. However, why is it that closing a command shell\'s window