Crash logic