We should probably do this in a finally block.