Will follow up with the finally block in a separate commit.