This will need to go into a finally block.