presisting phasespaces internally, and deleting them properly as well as closing the file stream when they are removed from the goemetry