Fix closing of unpartitioned driver factories