Think it's pretty common in most cases, it's paid up until the end of contract, unless you take another job. But in both Martinez and Koeman's case, they took international jobs, which presumably doesn't stop compensation payments.
We sacked Martinez and hired Koeman before Martinez got Belgium job. So we hadn't been burned once, before we agreed terms in same manner.