Close thumbnail service in a finally block.