Shouldn't this be inside the block to ensure that we do not release too early?