Added missing module handle freeing.