Clean up Engine destructor and remove bad throw.