Close the storage adapter on exit.