Disasters and maximum entropy production