This should be in a finally block.