Add call to destroy in terminate