In crash the last two hours before the crash is most important, so the recorder always recording and stopping when the plane crashes either because of crash sensor or simply due to loss of power and input as the wires leading to it are torn by the impact forces is the right thing.
However in some incidents¹ the data would also be useful. When the crew realizes something occurred that needs to be reported as incident, they are supposed to pull the circuit breakers after landing and tell the appropriate safety board to come for the data (which must be done before next flight). Alternatively if the aircraft is equipped with quick access recorder² they can instead preserve those data, which can be done by any maintenance worker, so the plane can be dispatched again.
However sometimes the crew fails to realize they should preserve the data (or fail to report the incident altogether and it may be reported by someone else like another crew, traffic controller, maintenance etc.) and get scolded for it.
¹ Incident is any occurrence in which safety margins were reduced, but nobody was hurt and there was no or only small damage (with damage to engines or landing gear always considered small). The kind of incident where investigators would most want to have CVR and FDR data and don't always get them is TCAS activations (near misses); they generally have ATC voice recordings and radar tracks, which ATC records in much longer loop, but the on-board recorders often get overwritten either before the planes land or because the crews fail to preserve them.
² The quick access recorder is not crash-worthy and not mandatory, but most airliners have it these days. It usually has longer recording loop and records more parameters, but the main advantage is that any mechanic with portable computer can download the data in couple of minutes and the aircraft can be dispatched again instead of waiting for the safety board investigator to come around.