I get error when i close out of tpt.