Add a finally impl for `extern "Rust" fn()`

Closes #4727