handlePanic