Shutdown logic refers to the programmed sequences and conditions under which a system or process will automatically shut down to prevent unsafe situations. This logic is embedded in safety systems to ensure quick and reliable response during emergencies.