Stop leaking files on derivative creation.