ruby driver cleanup