handle_quantum_expired