Moved cleanup stuff into adey_fini.