Emergency shutdown of overheated reactor