This should still be in a `defer` in order to report the correct value for `status`.