This line should probably be in a `finally:` block