Add destroyAll on exit.