Fix pop to destruct objects and return the last.